import * as service from "../services/myRanking";
export default {
  namespace: "myRanking",
  state: {
    text: "page work",
    list: []
  },
  subscriptions: {
    setup({ dispatch, history }) {
      return history.listen(({ pathname, query }) => {
        
      });
    }
  },
  effects: {
    *onCalendar({ payload }, { call, put }) {
      yield put({
        type: "save",
        payload: {
          calendarVisible: payload.calendarVisible
        }
      });
    }
  },
  reducers: {
    save(state, action) {
      return { ...state, ...action.payload };
    }
  }
};
